<?php $libPath = $_SERVER['DOCUMENT_ROOT']."/lib/";
include($libPath."controlSessionOspimSistemas.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>.: Estado Contable :.</title>
<style type="text/css">
<!--
.Estilo1 {
	font-size: 18px;
	font-weight: bold;
}
</style>
<script src="/lib/jquery.js" type="text/javascript"></script>
<script src="/lib/jquery.maskedinput.js" type="text/javascript"></script>
<script src="/lib/funcionControl.js" type="text/javascript"></script>
<script src="/lib/jquery.blockUI.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
jQuery(function($){
	$("#fechaHasta").mask("99-99-9999");
});

function validar(formulario) {
	if (!esFechaValida(formulario.fechaHasta.value)) {
		alert("La fecha no es valida");
		document.getElementById("fechaHasta").focus();
		return(false);
	} 
	$.blockUI({ message: "<h1>Generando Informe. Aguarde por favor...</h1>" });
	return true;
}
</script>

<style>
A:link {text-decoration: none;color:#0033FF}
A:visited {text-decoration: none}
A:hover {text-decoration: none;color:#00FFFF }
</style>
</head>

<body bgcolor="#CCCCCC">
<form id="form1" name="form1" onsubmit="return validar(this)" method="post" action="generarEstadoContable.php" >
<div align="center">
	<input type="button" name="volver" value="Volver" onclick="location.href = '../menuSistemas.php'" /> 
</div>
<p align="center" class="Estilo1">Estado Contable</p>
<?php   if (isset($_GET['ok'])) { 
			if ($_GET['ok'] == 1) {?>
			<p align="center" style="color: blue;"><b>Informe Generado</b></p> 
<?php   	} else { ?>
			<p align="center" style="color: red;"><b>Informe Generado con Anterioridad</b></p> 
<?php		}
		} ?>
<p align="center">Hasta el:<label><input id="fechaHasta" name="fechaHasta" type="text" value="<?php echo date("d/m/Y",time());?>" size="10"/></label></p>
<p align="center"><label><input type="submit" name="Submit" value="Generar Informe"/></label></p>
</form>
</body>
</html>